package com.hospital.workstation.domain.bo;

import com.hospital.common.core.validate.AddGroup;
import com.hospital.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hospital.common.core.domain.BaseEntity;

/**
 * 续一表业务对象 electronic_extend_one_info
 *
 * @author whb
 * @date 2024-05-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ElectronicExtendOneInfoBo extends BaseEntity {

    /**
     * 主键id
     */
    //@NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 监测表id
     */
    //@NotNull(message = "监测表id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long monitorId;

    /**
     * 次数
     */
    //@NotNull(message = "次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer count;

    /**
     * 给药开始时间
     */
    //@NotNull(message = "给药开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date beginTime;

    /**
     * 批号
     */
    //@NotBlank(message = "批号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String batchNo;

    /**
     * 配液放置时间（min）
     */
    //@NotBlank(message = "配液放置时间（min）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String placeTime;

    /**
     * 给药频率（次/天）
     */
    //@NotBlank(message = "给药频率（次/天）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String frequency;

    /**
     * 单次用药量（ml）
     */
    //@NotBlank(message = "单次用药量（ml）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String singleAmount;

    /**
     * 溶媒种类
     */
    //@NotBlank(message = "溶媒种类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String menstruumType;

    /**
     * 单次溶媒剂量（ml）
     */
    //@NotBlank(message = "单次溶媒剂量（ml）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String singleMenstruumAmount;

    /**
     * 给药途径
     */
    //@NotBlank(message = "给药途径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String giveIllnessPathway;

    /**
     * 静滴速度（滴/min）
     */
    //@NotBlank(message = "静滴速度（滴/min）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String quietSpeed;

    /**
     * 静滴持续时间（min）
     */
    //@NotBlank(message = "静滴持续时间（min）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String quietContinueTime;

    /**
     * 溶媒种类(其它)
     */
    private String menstruumTypeOther;

    /**
     * 给药途径(其它)
     */
    private String giveIllnessPathwayOther;
}
